export default [{
  title: '发起人',
  dataIndex: 'nickname',
  align: 'center',
}, {
  title: '赞助商名称',
  dataIndex: 'sponsor',
  align: 'center',
}, {
  title: '开奖条件',
  dataIndex: 'style',
  align: 'center',
  render: text => <span style={{whiteSpace: 'nowrap'}}>{text === 0 ? '按时间' : text === 1 ? '按人数' : '出错啦'}</span>,
}, {
  title: '开奖人数',
  dataIndex: 'number',
  align: 'center',
  render: (text, record) => <span style={{whiteSpace: 'nowrap'}}>{record.style === 1 ? `${text}人` : '/'}</span>,
}, {
  title: '开奖日期',
  dataIndex: 'endAt',
  sorter: true,
  align: 'center',
  render: (text, record) => <span style={{whiteSpace: 'nowrap'}}>{record.style === 0  ? text : '/'}</span>,
}];